#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
    int a = 0;
    float b = 0, M = 0, m = 100, n = 0;
    scanf("%d", &a);
    for (int i = a; i > 0; i--) {
        scanf("%f", &b);
        m = (m > b ? b : m);
        M = (M > b ? M : b);
        n += b;
    }
    printf("%.2f %.2f %.2f", M, m, n / a);
    return 0;
}